package Day08_20;

public class DeadLock {
    public static void main(String[] args) {
        Object o1 = new Object();
        Object o2 = new Object();

        Thread t1 = new Thread01(o1,o2);
        Thread t2 = new Thread02(o1,o2);
        t1.setName("t1");
        t2.setName("t2");
        //死锁
        t1.start();
        t2.start();
    }
}
